﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage2.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Phố Ẩm Thực, Điểm Đến Của Ẩm Thực Việt" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
     <style type="text/css">
        #menu-container ul li#home a
        {
            color:#ffffff;
            width:146px;
            line-height:49px;
            font-size:14px;
            font-weight:bold;
            text-decoration:none;
            display:block;
            background-image:url(Images/menu-bg_hover.jpg);
            background-repeat:repeat-x;  
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);    
            behavior: url(CSS/PIE.htc);
            box-shadow:0\9;
        }
    </style>
    <link href="CSS/home.css" rel="stylesheet" type="text/css" />
    <link href="CSS/default.css" rel="stylesheet" type="text/css" />
    <link href="CSS/nivo-slider.css" rel="stylesheet" type="text/css" />
    <script src="JS/jquery.nivo.slider.pack.js" type="text/javascript"></script>
    <script src="JS/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="JS/jquery.MyThumbnail.js" type="text/javascript"></script>
    <link href="CSS/MyThumbnail.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function(e) {
            $('#hot-news-content ul li:last-child').css({'border-bottom':'0'});
        });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<div class="clearfix">
<div id="left-pane">
    <div id="home-slide">
          <div class="slider-wrapper theme-default">
            <div id="slider" class="nivoSlider">
                <asp:Repeater ID="rptSlideImage" runat="server">
                    <ItemTemplate>
                        <a href='<%#"Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'><img alt='<%#Eval("TieuDe") %>' src='<%#Eval("DuongDan") %>' title='<%#"#"+Eval("SlideID") %>' /></a>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <asp:Repeater ID="rptSlideDes" runat="server">
                    <ItemTemplate>
                        <div id='<%#Eval("SlideID") %>' class="nivo-html-caption">
                <p style="font-size:14px;font-weight:bold"><%#Eval("TieuDe") %></p>
                <p style="font-size:14px;"><%#Eval("MoTa") %></p>
            </div>
                    </ItemTemplate>
                </asp:Repeater>
            
        </div>
    </div>
        <div class="clearfix" style="margin-top:6px;">
            <div class="Nha-hang_Header_Left"><p style="background-image:url(Images/res-item-wrapper-header.jpg")><a title="Xem tất cả" href="Nhahang.aspx">NHÀ HÀNG</a></p></div>
        </div>
        <div class="item_container">
            <ul class="clearfix">
                <asp:Repeater ID="rptRes" runat="server">
                <ItemTemplate>
                <li>
                    <div class="item">
                    <div class="item_image">
                       <a href='<%#"Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'> <img class="res-image" width="220" height="138" alt="" src='<%#Eval("HinhDaiDien") %>' /></a>
                    </div>
                     <div class="item_title">
                        <p>
                           <a href='<%#"Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'><%#Eval("TenNhaHang")%></a>
                        </p>
                    </div>
                    <div class="mota">
                        <p><%#Eval("MoTa") %></p>
                    </div>
                    <div class="address">
                        <p>Đường <%# Eval("Duong") %>,<%# Eval("TenHuyenQuan") %>,Tỉnh <%# Eval("TenTinhThanhPho") %></p>
                        
                    </div>
                    
                </div>
                </li>
                </ItemTemplate>
            </asp:Repeater>
            </ul>
                
        </div>
        <div class="clearfix" style="margin-top:6px;">
            <div class="Nha-hang_Header_Left"><p style="background-image:url(Images/cafe-item-wrapper-header.jpg")><a title="Xem tất cả" href="Quanngon.aspx">QUÁN NGON</a></p></div>
        </div>
        <div class="item_container">
            <ul class="clearfix">
                <asp:Repeater ID="rptQuanNgon" runat="server">
                <ItemTemplate>
                <li>
                    <div class="item">
                    <div class="item_image">
                       <a href='<%#"Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'> <img class="res-image" width="220" height="138" alt="" src='<%#Eval("HinhDaiDien") %>' /></a>
                    </div>
                     <div class="item_title">
                        <p>
                           <a href='<%#"Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'><%#Eval("TenNhaHang")%></a>
                        </p>
                    </div>
                    <div class="mota">
                       <p> <%#Eval("MoTa") %></p>
                    </div>
                    <div class="address">
                        <p><%# Eval("SoNha") %>, <%# Eval("TenXaPhuong") %>, <%# Eval("Duong") %>, <%# Eval("TenHuyenQuan") %>,<%# Eval("TenTinhThanhPho") %></p>
                        
                    </div>
                    
                </div>
                </li>
                </ItemTemplate>
            </asp:Repeater>
            </ul>
                
        </div>
        <div class="clearfix" style="margin-top:6px;">
            <div class="Nha-hang_Header_Left"><p><a title="Xem tất cả" href="Kemvscafe.aspx">CÀ PHÊ</a></p></div>
        </div>
        <div class="item_container">
            <ul class="clearfix">
                <asp:Repeater ID="rptCafe" runat="server">
               <ItemTemplate>
                <li>
                    <div class="item">
                    <div class="item_image">
                       <a href='<%#"Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'> <img class="res-image" width="220" height="138" alt="" src='<%#Eval("HinhDaiDien") %>' /></a>
                    </div>
                     <div class="item_title">
                        <p>
                           <a href='<%#"Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'><%#Eval("TenNhaHang")%></a>
                        </p>
                    </div>
                    <div class="mota">
                       <p> <%#Eval("MoTa") %></p>
                    </div>
                    <div class="address">
                         <p><%# Eval("SoNha") %>, <%# Eval("Duong") %>, <%#Eval("TenXaPhuong") %>, <%# Eval("TenHuyenQuan") %>,<%# Eval("TenTinhThanhPho") %></p>
                        
                    </div>
                    
                </div>
                </li>
                </ItemTemplate>
            </asp:Repeater>
            </ul>
                
        </div>
</div>
<div id="right-pane">
    <div id="hot-news">
        <div id="header-bg">
        <span>Tin tức ẩm thực</span>
        </div>
        <div id="hot-news-line"></div>
        <div id="hot-news-content">
                <ul>
                    <asp:Repeater ID="rptTopHotNews" runat="server">
                <ItemTemplate>
                    <li>
                        <div class="clearfix">
                            <div id="hot-news-content_img">
                              <div class='thumbnailList1'><img  alt=""  src='<%# Eval("HinhDaiDien") %>' /></div>
                            </div>
                            <div id="hot-news-content_right-wrapper">
                                <div>
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"chi-tiet-tin.aspx?BaiVietID="+Eval("BaiVietID") %>' Text='<%#Eval("TieuDe") %>'></asp:HyperLink>
                                </div>
                                <div style="margin-bottom:0;position:absolute;bottom:0;right:0">
                                  <span style="margin-right:8px;margin-left:5px;"><%#Eval("NgayTao") %></span>
                                <span style="margin-right:8px;">Đăng bởi</span><a class="username" href='<%#"User/thong-tin-thanh-vien.aspx?UserID="+Eval("UserID") %>'><%#Eval("TenHienThi")%></a> 
                                </div>
                            </div>
                        </div>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
                </ul>
            
        </div>
    </div>
    <div style="margin-top:5px;">
        <img alt="" src="Images/Right-banner/right-bn1.jpg" width="288" />
    </div>
    <div id="top-5-res">
        <div id="top-5-res-header">
            <p>Top điểm đến nổi bật</p>
        </div>
        <div id="top-5-res-content">
            <asp:Repeater ID="Repeater2" runat="server">
                <ItemTemplate>
                    <div id="item-wrapper">
                    <div style="margin-bottom:8px;padding-left:5px;padding-top:8px;" id="res-title">
                        <a runat="server" href='<%#"~/Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'><%#Eval("TenNhaHang") %></a>
                        </div>
                    <div class="clearfix" style="border-bottom:solid thin #f5f4f4;padding-bottom:12px;padding-left:5px">
                        <div style="float:left;margin-top:2px;">
                        <span>
                            <asp:Rating ID="Rating1" runat="server" StarCssClass="ratingEmpty" WaitingStarCssClass="ratingSaved" EmptyStarCssClass="ratingEmpty" FilledStarCssClass="ratingFilled" CurrentRating='<%#Eval("RateValue") %>' ReadOnly="true">
                            </asp:Rating>
                        </span></div>
                        <div style="float:left"><span style="margin-left:20px;font-size:11px;color:#5f5f62;margin-top:0"> Lượt xem : <asp:Label ID="lblTop5ResViews" runat="server" Text='<%#Eval("LuotXem") %>' ForeColor="#5f5f62" Font-Size="11px"></asp:Label></span></div>
                       <div style="float:left"> <span style="margin-left:20px;font-size:11px;color:#5f5f62;">Bình luận :  
                            <asp:Label ID="lblTop5ResComment" runat="server" Text='<%#Eval("LuotBinhLuan") %>' Font-Size="11px"></asp:Label></span></div>
                    </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
    <div id="facebook-plugin" style="margin-top:5px;">
        <div class="fb-like-box" data-href="http://www.facebook.com/Phoamthuc.net" data-width="288" data-show-faces="true" data-border-color="#dfdfdf" data-stream="false" data-header="true"></div>
    </div>
</div>
</div>
<script src="JS/jquery.nivo.slider.pack.js" type="text/javascript"></script>
<script type="text/javascript">
    $(window).load(function() {
        $('#slider').nivoSlider(
        {
            effect:'fade',
            pauseTime:5000
        } );
    });
    </script>
 <div id="fb-root"></div>
<script type="text/javascript">    (function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
        fjs.parentNode.insertBefore(js, fjs);
    } (document, 'script', 'facebook-jssdk'));</script>
     <script type="text/javascript">
         $(".thumbnailList1 img").MyThumbnail({
             thumbWidth: 40,
             thumbHeight: 40,
             imageDivClass: "myPic"
         });
    </script>
    <script type="text/javascript">
        $(document).ready(function() {
            $('.res-image').hide().fadeIn(700);
        });
    </script>
</asp:Content>

